#include "stdafx.h"
#include "qtacquisition.h"

QtAcquisition::QtAcquisition(QWidget *parent)
	: QWidget(parent)
{
	btn_test = new QPushButton();
	btn_test->setText(QString("Acquisition Start"));
	btn_test->setFixedWidth(120);
	btn_test->setFixedHeight(60);
	QGridLayout *vLayout = new QGridLayout(this);
	vLayout->setMargin(3);
	vLayout->setSpacing(1);

	chart0 = new QChart();
	series0 = new QLineSeries();
	series0->setName("0min Load");
	chart0->addSeries(series0);
	gview0 = new QChartView();
	gview0->setChart(chart0);
	vLayout->addWidget(gview0, 0, 0);

	chart1 = new QChart();
	series1 = new QLineSeries();
	series1->setName("1min Load");
	chart1->addSeries(series1);
	gview1 = new QChartView();
	gview1->setChart(chart1);
	vLayout->addWidget(gview1, 0, 1);

	chart2= new QChart();
	series2 = new QLineSeries();
	series2->setName("2min Load");
	chart2->addSeries(series2);
	gview2 = new QChartView();
	gview2->setChart(chart2);
	vLayout->addWidget(gview2, 0, 2);

	chart3 = new QChart();
	series3 = new QLineSeries();
	series3->setName("3min Load");
	chart3->addSeries(series3);
	gview3 = new QChartView();
	gview3->setChart(chart3);
	vLayout->addWidget(gview3, 1, 0);

	chart4 = new QChart();
	series4 = new QLineSeries();
	series4->setName("1min Load");
	chart4 ->addSeries(series4);
	gview4 = new QChartView();
	gview4->setChart(chart4);
	vLayout->addWidget(gview4, 1, 1);

	chart5 = new QChart();
	series5 = new QLineSeries();
	series5->setName("5min Load");
	chart5->addSeries(series5);
	gview5 = new QChartView();
	gview5->setChart(chart5);
	vLayout->addWidget(gview5, 1, 2);

}

QtAcquisition::~QtAcquisition()
{}


